import { createApp } from 'vue'
import App from './App.vue'
import { setupStore } from '@/store'
import { setupI18n } from '@/i18n'
import { setupRouter } from '@/router'

const setupApp = async () => {
    const app = createApp(App)

    setupStore(app)
    await setupI18n(app)
    await setupRouter(app)
    app.mount('#app')
}

await setupApp()

